﻿


using NB.MGJ.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NB.MGJ.Model
{

    /// <summary>
    /// 奖项
    /// </summary>
    public class Marketing_Awards
    {

        /// <summary>
        ///  
        /// </summary>
        [Property("Key")]
        public int Id { get; set; }

        /// <summary>
        ///  活动编号
        /// </summary>
        public int? ActivityId { get; set; }

        /// <summary>
        ///  奖池编号
        /// </summary>
        public int JackpotID { get; set; }

        /// <summary>
        /// 奖品等级
        /// </summary>
        public int AwardsGrade { get; set; }
        /// <summary>
        ///  奖品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///  中奖提示语
        /// </summary>
        public string Congrats { get; set; }

        /// <summary>
        ///  中奖率
        /// </summary>
        public decimal Rate { get; set; }

        /// <summary>
        ///  备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        ///  发放数量
        /// </summary>
        public int? TotalNums { get; set; }

        /// <summary>
        ///  总金额
        /// </summary>
        public decimal TotalMoney { get; set; }

        /// <summary>
        ///  剩余数量
        /// </summary>
        public int? ResidueNums { get; set; }

        /// <summary>
        ///  剩余金额
        /// </summary>
        public decimal ResidueMoney { get; set; }

        /// <summary>
        ///  奖品的图标
        /// </summary>
        public string AwardsIosUrl { get; set; }

        /// <summary>
        ///  大转盘出现的字段奖品占的度数360度
        /// </summary>
        public int? AwardsLimit { get; set; }

        /// <summary>
        ///  奖品的背景颜色
        /// </summary>
        public string AwardsBgColor { get; set; }

        /// <summary>
        ///  机构编号
        /// </summary>
        public int? EnterpriseId { get; set; }

        /// <summary>
        ///  删除状态0未删除1已删除
        /// </summary>
        public int? ViewDel { get; set; }

        /// <summary>
        /// 启用状态1未启用状态0
        /// </summary>
        public int? ViewFlag { get; set; }

        /// <summary>
        ///  
        /// </summary>
        public int? Sequence { get; set; }


        /// <summary>
        /// 预计最大金额
        /// </summary>
        public decimal PredictMaxMoney { get; set; }

        /// <summary>
        /// 预计最小金额
        /// </summary>
        public decimal PredictMinMoney { get; set; }

        /// <summary>
        /// 客服电话
        /// </summary>
        public string ServicePhone { get; set; }

        /// <summary>
        /// 自定义按钮类型 0 关闭 1 页面跳转 2一键关注
        /// </summary>
        public int ButtonType { get; set; }

        /// <summary>
        /// 按钮名称
        /// </summary>
        public string ButtonName { get; set; }

        /// <summary>
        /// 按钮跳转地址
        /// </summary>
        public string ButtonHref { get; set; }

        /// <summary>
        /// 微信公众号二维码
        /// </summary>
        public string WxButtonName { get; set; }

        /// <summary>
        /// 微信公众号二维码
        /// </summary>
        public string WxCodeImg { get; set; }

        /// <summary>
        /// 类型 代金券 折扣价 运气红包  普通红包 
        /// </summary>
        [NotMapped]
        public int CouponType { get; set; }


        /// <summary>
        /// 类型 1: 红包 2: 优惠券 3:  流量包 根据奖池一样
        /// </summary>
        [NotMapped]
        public int? type { get; set; }

        /// <summary>
        /// 主办单位
        /// </summary>
        [NotMapped]
        public string Sponsor { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        [NotMapped]
        public string EnterpriseName { get; set; }

        [NotMapped]
        public decimal Denomination { get; set; }


    }

    public enum AwardTypeEnum
    {
        /// <summary>
        /// 抢红包
        /// </summary>
        HB = 1,

        /// <summary>
        /// 优惠券
        /// </summary>
        YHJ = 2,
        /// <summary>
        /// 流量包
        /// </summary>
        LLB = 3
    }


}











